#ifndef _Q_FUNC_H
#define _Q_FUNC_H

#include "qe_vars.h"


/* TO DELETE: */
#define MAX_FUN_LEN 256
#define MAX_ARG_LEN 256

struct q_func
{
	char arglist[MAX_ARG_LEN];
	struct q_variable (*ptr)(struct q_variable* var_list);
};

extern struct q_func func_table[256];
extern int q_func_count;

int q_registerfunc(const char* const name, const char* const arglist, struct q_variable (*ptr)(struct q_variable* var_list));

int q_runfunc(const char* const name, struct q_variable* return_value, struct q_variable* arglist);

#endif
